﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Ashlen.Portal.Core.DTO
{
    [DataContract(Namespace = "http://www.ashlen.com.au/", Name = "NewsSearchRequest")]
    [Serializable]
    public class NewsSearchRequest
    {
        [DataMember(IsRequired=false, Name="startDate")]
        public string startDate;

        [DataMember(IsRequired = false, Name = "endDate")]
        public string endDate;

        [DataMember(IsRequired = false, Name = "searchValue")]
        public string searchValue = string.Empty;

        [DataMember(IsRequired = true, Name = "sortBy")]
        public NewsSortBy sortBy;

        [DataMember(IsRequired = true, Name = "section")]
        public int section;

        [DataMember(IsRequired = true, Name = "newsSources")]
        public List<int> newsSources;
    }
}
